package com.weng.cloud.service8881.hystrix;

import com.cloud.api.hystrix.HystrixService;
import com.cloud.api.hystrix.NbaPlayer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @Author: weng
 * @Date: 2022/3/11
 * @Description: com.weng.cloud.service8881.hystrix
 */

//建议Impl HystrixServiceImpl 而非 HystrixService,防止Bean id重名
@Service
public class HystrixFallBack implements HystrixServiceImpl {

    @Override
    public NbaPlayer testDependency(String arg) {
        return null;
    }

    @Override
    public String testHystrixFeign() {
        return "今晚8点我在沙城等你";
    }
}
